export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  indexWidth: 60,
  // stripe: true,
  menuAlign: 'center',
  searchSpan: 8,
  searchMenuSpan: 8,
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  searchShowBtn: false,
  cardBtn: false,
  gridBtn: false,
  searchMenuPosition: 'left',
  menuWidth: 300,
  column: [
    {
      label: '设备名称',
      prop: 'deviceName',
    },  
    {
      label: '所属产品',
      prop: 'productName'
    },  
    {
      label: '设备状态',
      prop: 'onlineStatus',
      html: true,
      formatter:(val)=>{
        if(val.onlineStatus == 0) {
          return '<span class="text-color-yellow">离线</span>'
        } else {
          return '<span class="text-color-green">在线</span>'
        }
      }
    }
  ]
}
